package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IMiguMusicRetentAddConfigDao;
import org.jsbd.boss.domian.MiguMusicRetentAddConfig;

import org.springframework.stereotype.Repository;

@Repository("miguMusicRetentAddConfigDao")
public class MiguMusicRetentAddConfigDaoImpl extends CrackBaseDao implements IMiguMusicRetentAddConfigDao {

	@Override
	public void save(List<MiguMusicRetentAddConfig> list) {
		super.batchInsert("qy_migu_music_retent_add_config.insert_migu_music_retent_add_config", list);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<MiguMusicRetentAddConfig> getList(MiguMusicRetentAddConfig miguMusicRetentAddConfig) {
		return super.queryForList("qy_migu_music_retent_add_config.select_list", miguMusicRetentAddConfig);
	}

	@Override
	public Integer getListPageCount(MiguMusicRetentAddConfig miguMusicRetentAddConfig) {
		return super.queryForCount("qy_migu_music_retent_add_config.select_list_count", miguMusicRetentAddConfig);
	}

	@Override
	public void delete(List<Integer> ids) {
		super.batchUpdate("qy_migu_music_retent_add_config.delete_by_id", ids);
	}

	@Override
	public void deleteByMiguMusicId(Integer miguMusicId) {
		super.update("qy_migu_music_retent_add_config.delete_by_migu_music_id", miguMusicId);
	}

	@Override
	public int updateTaskNum(MiguMusicRetentAddConfig miguMusicRetentAddConfig) {
		return super.update("qy_migu_music_retent_add_config.update_task_num", miguMusicRetentAddConfig);
	}

}
